'''
Description: 
Author: Zilu
Date: 2021-11-04 12:35:56
Version: 
LastEditTime: 2021-11-04 12:51:25
LastEditors: Zilu
'''

# 函数导入
import math
from abs_test import my_abs

print(my_abs(-9))
print(my_abs('A'))

# pass 空语句


def nop():
    pass

# python 函数返回的多个值实际上是一个值，是个tuple


def move(x, y, step, angle=0):
    nx = x+step*math.cos(angle)
    ny = y-step*math.sin(angle)
    return nx, ny           # 语法上返回tuple可以省略括号


x, y = move(100, 100, 60, math.pi/6)
print(x, y)

r = move(100, 100, 60, math.pi/6)
print(r)
